<template>
  <div id="basic-layout">
    <a-layout>
      <a-layout-header class="basic-layout-header"
        ><GlobalHeader
      /></a-layout-header>
      <a-layout class="main-layout">
        <div class="auto-size"></div>
        <!--        <a-layout-sider class="basic-layout-sider" :width="160"-->
        <!--          ><GlobalSider-->
        <!--        /></a-layout-sider>-->
        <a-layout-content class="basic-layout-content"
          ><router-view
        /></a-layout-content>
        <div class="auto-size"></div>
      </a-layout>
    </a-layout>
  </div>
</template>

<script setup>
import GlobalHeader from "@/components/GlobalHeader.vue";
import GlobalSider from "@/components/GlobalSider.vue";
</script>

<style scoped>
#basic-layout {
  width: 100%;
  height: auto;
  background: #efefef;
}

#basic-layout .basic-layout-header {
  background: #fff;
  margin-bottom: 20px;
  color: unset;
  padding-inline: 20px;
  position: relative;
}

#basic-layout .basic-layout-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgb(22, 119, 255); /* 蓝色装饰线 */
}

#basic-layout .main-layout {
  height: auto;
  min-width: 100%;
  display: flex;
  padding: 0 20px;
  box-sizing: border-box;
}

.main-layout .auto-size {
  flex: 1;
}

.main-layout .basic-layout-content {
  background: #fff;
  padding: 20px;
  margin: 0 auto;
  width: 700px;
  height: auto;
  min-height: 100vh;
  flex: 0 0 auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

:deep(.basic-layout-sider) {
  min-height: 100vh;
  margin-right: 10px;
  background: #fff;
  padding: 20px;
  flex: 0 0 180px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
</style>
